import axios from 'axios'
const monitor = (id) => {
  const mes = {
    monurl: '',
    code: '',
  }
  axios({
    url: `http://10.81.167.20:18080/api/play/start/42010500002005000159/${id}`
  }).then(res => {
    let _url = res.data.data.fmp4.replace('http://172.16.10.20', 'http://10.81.167.20')
    mes.monurl = _url
    mes.code = res.data.code
    return mes
  }).catch(err => {
    console.log(err)
    return mes
  })
}
export default monitor